package com.example.app2

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class MyViewModel : ViewModel() {
    private val _text=MutableLiveData<String>().apply { value = "lizongin" }

    val text=_text

    fun changText(ctn: String) {
        _text.value=ctn
    }
}